﻿using UnityEngine;
using System.Collections;


/*
 * Scripting Note:
 * this = this script only
 * gameObject (smaller case 'g') = the game object this Script attached to
 */

public class AnimationEvent : MonoBehaviour {
	Animator _animator;

	// Use this for initialization
	void Start () {
		_animator = GetComponent<Animator>();
		Debug.Log ("Start() in AnimationEvent, fireEvents: " + _animator.fireEvents);

	}
	
	// Update is called once per frame
	void Update () {
	
	}

	public void indicateAnimationHasEnded(){
		Debug.Log ("Animation Has Ended");

		PoolComboNumber.totalDigitsFinishedDisplaying++;
		Destroy(gameObject);	//Combo Count should disappear after showing up for 1 second
		//Note that it's just a single digit here, so actually there'll a few numbers self-destructing after 1 second of displayed
	}
}
